package com.qj.daibei.service;

import com.github.pagehelper.PageInfo;
import com.qj.daibei.pojo.Loan;

import java.util.List;

/**
 * author wml
 * Created on 2021/10/6 15:34
 */
public interface LoanService {
    int insertLoan(Loan loan);
    int queryForRecordByUserId(Integer userId);

    List<Loan> findLoanByUserId(Integer userId);

    List<Loan> findLoanByUserIdByPageFirst(Integer userId, int pageNum,int pageSize);

    PageInfo<Loan> findLoanByUserIdByPageSecond(Integer userId, int pageNum, int pageSize);

    List<Object> findLoanIdByUserId(Integer userId);
}
